/*
 * config.h
 *
 *  Created on: Jul 4, 2024
 *      Author: root
 */

#ifndef BSP_CONFIG_CONFIG_H_
#define BSP_CONFIG_CONFIG_H_

#define ASSERT_FILE				"assert.txt"
#define COMMON_BUFFER_SIZE		200 ///< common buffer size

#define LOG_RING_BUFFER_SIZE	(1024*1024)
#define LOG_LEVEL				Level::DEBUG

#define LOG_FILE_ON				true
#define LOG_TIME_ON				true
#define LOG_CONSOLE_ON			true
#define LOG_FILE_NAME			"log.txt"
#define LOG_FILE_MAX_SIZE		(1024*100)
#define LOG_FILE_REWRITE_TAIL_SIZE	(1024*3)

#define DATABASE_MAX_CONN			10
#define DATABASE_HOST				"localhost"
#define DATABASE_PORT				3306
#define DATABASE_USER				"guest"
#define DATABASE_PWD				"123456"
#define DATABASE_NAME				"webserver"

#define THREAD_COUNT				6
#define THREAD_MAX_QUEUE_FUNC_SIZE	3000

#define HASH_MAP_MAX_SIZE			(10000)

#define EPOLL_MAX_EVENT				10

#define WEB_SERVER_IP				"0.0.0.0"
#define WEB_SERVER_PORT				8008
#define WEB_SERVER_CLIENT_TIMEOUT	30000
#define WEB_SERVER_LISTEN_BACKLOG	10

#define HTTP_RESPONSE_HEADER_BUFFER_SIZE	256

#define LOCAL_SOCK_SERVER_NAME 		"server"
#define LOCAL_SOCK_CLIENT_NAME		"client"

#define WWW_HTML_DIR				"/home/nwz/workspace/eclipse_embed/bbb/resources"

#endif /* BSP_CONFIG_CONFIG_H_ */
